package store

import "github.com/boltdb/bolt"

type PutCmd struct {
	tCmdBase

	Key   []byte
	Value []byte
}

func (me *PutCmd) Apply(tx *bolt.Tx) error {
	b := tx.Bucket(gDataBucket)
	return b.Put(me.Key, me.Value)
}

func (me *PutCmd) Tag() int {
	return gPutCmdTag
}
